package controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DemoController2 {
    /**
     * 接受javabean对象传递表达提交的数据
     * 访问路径Http:localhost:8080/WebApp_springMvc/get.do?id=88
     *
     *
     * @param id
     * @return
     */

    @GetMapping("get.do")
    public String get(String id){
        System.out.printf("id:"+id);
        return "OK";
    }

}
